//
//  ColorView.m
//  UI02_UILabel_UITextField_UIButton_UIImageView
//
//  Created by Scott on 16/3/10.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "ColorView.h"

#define RANDOM arc4random() % (255 - 0 + 1) + 0

@implementation ColorView

- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor colorWithRed:(RANDOM) / 255.f green:(RANDOM) / 255.f blue:(RANDOM) / 255.f alpha:1];
    }
    
    return self;
    
}


@end
